
#include "YCASimpleDialogParamDlg.h"
#include "CATApplicationFrame.h"
#include "CATDlgGridConstraints.h"
#include "CATMsgCatalog.h"
#ifdef YCASimpleDialogParamDlg_ParameterEditorInclude
#include "CATIParameterEditorFactory.h"
#include "CATIParameterEditor.h"
#include "CATICkeParm.h"
#endif




//-------------------------------------------------------------------------
// Constructor
//-------------------------------------------------------------------------
YCASimpleDialogParamDlg::YCASimpleDialogParamDlg() :
  CATDlgDialog ((CATApplicationFrame::GetApplicationFrame())->GetMainWindow(),
//CAA2 WIZARD CONSTRUCTOR DECLARATION SECTION
"YCASimpleDialogParamDlg",CATDlgGridLayout
//END CAA2 WIZARD CONSTRUCTOR DECLARATION SECTION
                               )
{
//CAA2 WIZARD CONSTRUCTOR INITIALIZATION SECTION
 _Frame001 = NULL;
 _LabelName = NULL;
 _EditorName = NULL;
//END CAA2 WIZARD CONSTRUCTOR INITIALIZATION SECTION
}

//-------------------------------------------------------------------------
// Destructor
//-------------------------------------------------------------------------
YCASimpleDialogParamDlg::~YCASimpleDialogParamDlg()
{
//  Do not delete the control elements of your dialog: 
//     this is done automatically
//  --------------------------------------------------
//CAA2 WIZARD DESTRUCTOR DECLARATION SECTION
 _Frame001 = NULL;
 _LabelName = NULL;
 _EditorName = NULL;
//END CAA2 WIZARD DESTRUCTOR DECLARATION SECTION
}



void YCASimpleDialogParamDlg::Build()
{
//  TODO: This call builds your dialog from the layout declaration file
//  -------------------------------------------------------------------

//CAA2 WIZARD WIDGET CONSTRUCTION SECTION
 _Frame001 = new CATDlgFrame(this, "Frame001", CATDlgGridLayout);
_Frame001 -> SetGridConstraints(0, 0, 1, 1, CATGRID_4SIDES);
 _LabelName = new CATDlgLabel(_Frame001, "LabelName");
_LabelName -> SetGridConstraints(0, 0, 1, 1, CATGRID_4SIDES);
 _EditorName = new CATDlgEditor(_Frame001, "EditorName");
_EditorName -> SetGridConstraints(0, 1, 1, 1, CATGRID_4SIDES);
//END CAA2 WIZARD WIDGET CONSTRUCTION SECTION

//CAA2 WIZARD CALLBACK DECLARATION SECTION
     AddAnalyseNotificationCB (this, 
                               GetWindCloseNotification(),
                               (CATCommandMethod)&YCASimpleDialogParamDlg::OnYCASimpleDialogParamDlgWindCloseNotification,
                               NULL);
     AddAnalyseNotificationCB (this, 
                               GetDiaCANCELNotification(),
                               (CATCommandMethod)&YCASimpleDialogParamDlg::OnYCASimpleDialogParamDlgDiaCANCELNotification,
                               NULL);
     AddAnalyseNotificationCB (this, 
                               GetDiaOKNotification(),
                               (CATCommandMethod)&YCASimpleDialogParamDlg::OnYCASimpleDialogParamDlgDiaOKNotification,
                               NULL);
//END CAA2 WIZARD CALLBACK DECLARATION SECTION

}

//-------------------------------------------------------------------------
// Callback on DiaOK of _YCASimpleDialogParamDlg
//-------------------------------------------------------------------------
void YCASimpleDialogParamDlg::OnYCASimpleDialogParamDlgDiaOKNotification(CATCommand* cmd, CATNotification* evt, CATCommandClientData data)
{
  // Add your code here
	SetVisibility(CATDlgHide);
}


//-------------------------------------------------------------------------
// Callback on DiaCANCEL of _YCASimpleDialogParamDlg
//-------------------------------------------------------------------------
void YCASimpleDialogParamDlg::OnYCASimpleDialogParamDlgDiaCANCELNotification(CATCommand* cmd, CATNotification* evt, CATCommandClientData data)
{
  // Add your code here
	SetVisibility(CATDlgHide);
}


//-------------------------------------------------------------------------
// Callback on WindClose of _YCASimpleDialogParamDlg
//-------------------------------------------------------------------------
void YCASimpleDialogParamDlg::OnYCASimpleDialogParamDlgWindCloseNotification(CATCommand* cmd, CATNotification* evt, CATCommandClientData data)
{
  // Add your code here
	SetVisibility(CATDlgHide);
}

